package com.novax.ex.activity.infrastructure.mapper;

import com.novax.ex.activity.infrastructure.entity.EventSignup;
import com.novax.ex.activity.infrastructure.entity.OperationConfig;
import com.novax.ex.activity.infrastructure.entity.OperationConfigExpand;
import com.novax.ex.activity.infrastructure.entity.OperationUserLog;
import com.novax.ex.common.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @Author ChenXi
 * @Date 2023/04/18/15:23
 */

public interface OperationConfigMapper extends BaseMapper {


    /***
     * @Description: 查询此生成的自定义id是否已存在
     * @Author: ChenXi
     * @Date:  2023/4/18 15:41
     * @param customId
     * @return: java.lang.Integer
     **/
    Long findByCustomId(@Param("customId") String customId);

    /**
     * @Description: 查询详情
     * @Author: ChenXi
     * @Date:  2023/4/19 10:23
     * @param customId
     * @return: void
     **/
    OperationConfigExpand findByCustomIdAndLanguage(@Param("customId")String customId , @Param("language")String language);



    /**
     * @Description: 根据自定义id搜索
     * @Author: ChenXi
     * @Date:  2023/4/19 10:23
     * @param customId
     * @return: Long
     **/
    OperationConfig queryOperationIdByCustomId(@Param("customId") String customId);

    /**
     * @param customId
     * @param language
     * @Description: 查询详情(查不到语言仍会返回)
     * @Author: ChenXi
     * @Date: 2024/6/14 16:52
     * @return: com.novax.ex.activity.infrastructure.entity.OperationConfigExpand
     **/
    OperationConfigExpand findByCustomIdIgnoreLanguage(@Param("customId") String customId, @Param("language") String language);

}